********************************************
*****************OVERVIEW*******************
********************************************
Comparative Political Studies (CPS) Dataverse Replication materials: "Elections Increase Satisfaction with Democracy," by Shane P. Singh 

Below is a description of the data files, the analysis files, and the codebook, as well as step-by-step instructions for the replication of the content of all figures and associated discussion in the article and Supplementary Material.



********************************************
***********COMPUTE ENVIRONMENT**************
********************************************
Operating system:						macOS 15.4 (24E248, Sequoia) (12 Core Apple M2 Max; 64 GB Memory)
Statistical software 						Stata/MP 17.0 for Mac (Apple Silicon) Revision 21 May 2024
Estimated run time for all analyses				14 hours Packages used in analysis					COEFPLOT (http://repec.sowi.unibe.ch/stata/coefplot/getting-started.html)
								ECLPLOT (https://ideas.repec.org/c/boc/bocode/s431601.html)
								RDDENSITY (https://rdpackages.github.io/rddensity/)
								YALESCHEME (https://aarondwolf.github.io/yalescheme/)								

									

********************************************
**********REPLICATING THE ANALYSIS**********
********************************************

************
**Necessary Files
************		
Brazil_Experiment.dta						A dataset used in the Supplementary Material. It includes data from a survey experiment conducted by the author following the second round of Brazil's 2022 presidential election.
Replication, Study 1.do						Code for reproducing the analyses and figures in Study 1 of the main textReplication, Study 2.do						Code for reproducing the analyses and figures in Study 2 of the main textReplication, Study 3.do						Code for reproducing the analyses and figures in Study 3 of the main textReplication, Supplementary Material.do				Code for reproducing the analyses and figures in the Supplementary Material
Study 1.dta							The dataset for Study 1. This includes several public opinion surveys from the Eurobarometer, the European Social Survey (ESS), the European Values Study/World Values Survey (EVS/WVS), the AmericasBarometer, and the Latinobarometer, many of which were interrupted by a national election. 
Study 2.dta							The dataset for Study 2. This includes several two-round panel surveys from the Making Electoral Democracy Work (MEDW) project. 
Study 3.dta							The dataset for Study 3. This includes data from a survey experiment conducted by the author following Finland's 2023 parliamentary election.


************
**Instructions and Further Description
************
1. Download all of the necessary files listed above to the same working folder.

2. Set your working directory in Stata to the folder in which you stored all of the necessary files.

3. Create a subfolder within your working folder called "Bootstrap". This is where you will store files created as part of the bootstrapping process underlying the models illustrated in Figure SM3 of the Supplementary Material.

4. Replicate the analyses in Study 1 of the main text. Open and run “Replication, Study 1.do”. The included code will reproduce the content shown in the figures displayed in Study 1. It also provides code for analyses behind claims made in Study 1. 

5. Replicate the analyses in Study 2 of the main text. Open and run “Replication, Study 2.do”. The included code will reproduce the content shown in the figures displayed in Study 2. It also provides code for analyses behind claims made in Study 2.

6. Replicate the analyses in Study 3 of the main text. Open and run “Replication, Study 3.do”. The included code will reproduce the content shown in the figures displayed in Study 3. It also provides code for analyses behind claims made in Study 3. 

7. Replicate the analyses in the Supplementary Material. Open and run “Replication, Supplementary Material.do”. The included code will reproduce the content shown in the figures displayed in the Supplementary Material. It also provides code for analyses behind claims made in the Supplementary Material.




********************************************
****************OTHER FILES*****************
********************************************
Codebook.pdf						Describes each variable used in the analyses and gives information on coding and measurement 
readme.txt						This file



********************************************
************REPLICATION CONTACT*************
********************************************
Shane P. Singh
singh@uga.edu
www.shanepsingh.com
https://scholar.google.com/citations?hl=en&user=GZ2ePRkAAAAJ




